package com.zwb.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zwb.service.pojo.Admin;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zwb
 * @since 2022-08-23
 */
public interface IAdminService extends IService<Admin>, UserDetailsService {

    Admin getAdminByUsername(String name);

    /**
     * 获取所有操作员（当前登录用户除外）
     *
     * @param keywords
     * @return
     */
    List<Admin> getAllAdmins(String keywords);
}
